#include "PAP_defs.h"
#include "derivative.h"

#define IIC_BAUDRATE_100KBPS 0x80
#define IIC_MODE_MASTER 1
#define IIC_MODE_SLAVE 0
#define IIC_TRANSMIT 1
#define IIC_RECEIVE 0

void vfnIIC_Address (uint8 u8address);

void vfnIIC_BaudRate (uint8 u8rate);

void vfnIIC_Enable (void);

void vfnIIC_Disable (void);

void vfnIIC_EnableInterrupts (void);

void vfnIIC_DisableInterrupts (void);

void vfnIIC_ModeSelect (uint8 u8mode);

void vfnIIC_Reset (void);

void vfnIIC_EnableAcknowledge (void);

void vfnIIC_DataDirection (uint8 u8mode);

uint8 u8IIC_TransferComplete (void);

uint8 u8IIC_CheckIfAdressed (void);

uint8 u8IIC_BusBusy (void);

uint8 u8IIC_ArbitrationLost (void);

uint8 u8IIC_SlaveStatus (void);

uint8 u8IIC_CheckInterrupt (void);

uint8 u8IIC_AckReceived (void);

uint8 u8IIC_ReadData (void);

void vfnIIC_SendData (uint8 u8data);


